<div class="post-panel">
	<div class="panel panel-primary">
		<div class="panel-heading">
			<div class="clearfix">
				<div class="pull-left"><?php echo(date('F j, Y h:i:s A', strtotime($renderPost['post_dtime']))); ?></div>
				<div class="pull-right">
					<?php
						$postControlPostID = $renderPost['post_id'];
						$postControlTopicID = $renderPost['topic_id'];
						include("./templates/PostControls.php"); 
					?>
				</div>
			</div>
		</div>
		<div class="panel-body">
			<div class="clearfix">
				<div class="pull-left post-user-info">
					<div class="post-username-container">
						<strong>
						<?php
							echo($renderPost['username']);
						?>
						</strong>
					</div>
					<div>
						<div class="user-img-container">
							<img class="post-user-img" src="./img/profile/<?php if(isset($renderPost['profile_img_filename'])){echo($renderPost['profile_img_filename']);}else{ if(isset($renderPost['poster_gender']) && strtolower($renderPost['poster_gender'])=='f'){echo('default-female.png'); }else{echo('default-male.png');}} ?>" />
						</div>
					</div>
				</div>
				<div class="pull-left post-body-container">
					<div>
						<span class="glyphicon glyphicon-comment"></span> <strong><?php echo($renderPost['post_title']); ?></strong>
					</div>
					<hr size="1" class="post-body-seperator" style="color:#e2e1ea">
					<div class="smiley-container">
						<?php echo($renderPost['post_body']);  ?>
					</div>
				</div>
			</div>
		</div>
</div>